#!/bin/sh -v
ulimit -c 900000
rm core -f 

kill `cat ~/.moros/moros_central.pid`
echo "" > /var/log/moros_central.log
bin/moros_central -S chatserv -P ~/.moros/moros_central.pid -l 4
sleep 1;

kill `cat ~/.moros/chat_server.pid`
echo "" > /var/log/chatserver.log
bin/chat_server -S chatserv -P ~/.moros/chat_server.pid -l 4
sleep 1;

echo "" > ~/.moros/log
bin/moros
